<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Diary Entry</title>
    <link rel="stylesheet" href="{{ url_for('static', filename='styles.css') }}">
</head>
<body>
    <h1>Diary Entry</h1>
    <form action="{{ url_for('submit') }}" method="post">
        <label for="date">Date:</label>
        <input type="date" id="date" name="date" required><br><br>

        <label for="weather">Weather:</label>
        <input type="text" id="weather" name="weather" required><br><br>

        <label for="mood">Mood:</label>
        <input type="text" id="mood" name="mood" required><br><br>

        <label for="event">Event:</label>
        <textarea id="event" name="event" rows="4" required></textarea><br><br>

        <button type="submit">Submit</button>
    </form>
    <a href="{{ url_for('history') }}">View History</a>
</body>
</html>